<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <include file="Public/title" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Free HTML5 Template by FREEHTML5" />
  <meta name="keywords" content="free html5, free template, free bootstrap, html5, css3, mobile first, responsive" />
  <!-- Facebook and Twitter integration -->
  <meta property="og:title" content=""/>
  <meta property="og:image" content=""/>
  <meta property="og:url" content=""/>
  <meta property="og:site_name" content=""/>
  <meta property="og:description" content=""/>
  <meta name="twitter:title" content="" />
  <meta name="twitter:image" content="" />
  <meta name="twitter:url" content="" />
  <meta name="twitter:card" content="" />
  <include file="Public/head" />
  

    <script>
          function all_checked() {
                var all_check = document.getElementById("allCheck");
              var check=document.getElementsByName("Check[]");
                if (all_check.checked) {
                    for(j=0;j<check.length;j++){
                        check[j].checked=1;
                    }
                } else {
                    for(j=0;j<check.length;j++){
                        check[j].checked=0;
                    }
                }
             }
          function printCode() {
          
              var check=document.getElementsByName("Check[]");
              var flag=0;
              for(j=0;j<check.length;j++){
                  if(check[j].checked)
                  {
                      flag=1;   
                  }
              }
              if(flag==0)
              {
                  return false;
              }
              else
              {
                  location.replace('printQrcode');
                  return true;
              }
              
          }
          function delcheck(){

            var check=document.getElementsByName("Check[]");
            var flag=0;
            var dels="";
             for(j=0;j<check.length;j++){
                  if(check[j].checked)
                  {
                      flag=1; 
                      dels=dels+check[j].value+",";  
                  }
              }
              if(flag==0)
              {
                  alert("请选择信息后删除！")
                  return false;
              }
              else
              {
                //去掉最后一个逗号

                  dels=dels.replace(/,$/,"");
                  var path="__APP__/Goods/delchecks?ids="+dels;
                  location.href=path;
                  
              }
          }
    </script>
     <style type="text/css">
DIV.jogger { 
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN: 7px;
 PADDING-TOP: 2px; FONT-FAMILY: "Lucida Sans Unicode",
 "Lucida Grande", LucidaGrande, "Lucida Sans", Geneva, Verdana, sans-serif ;text-align: center;
} 
DIV.jogger A { 
PADDING-RIGHT: 0.64em; PADDING-LEFT: 0.64em; PADDING-BOTTOM: 0.43em;
 MARGIN: 2px; COLOR: #fff; PADDING-TOP: 0.5em; 
BACKGROUND-COLOR: #ee4e4e; TEXT-DECORATION: none 
} 
DIV.jogger A:hover { 
PADDING-RIGHT: 0.64em; PADDING-LEFT: 0.64em; PADDING-BOTTOM: 0.43em;
 MARGIN: 2px; COLOR: #fff; PADDING-TOP: 0.5em; BACKGROUND-COLOR: #de1818 
} 
DIV.jogger A:active { 
PADDING-RIGHT: 0.64em; PADDING-LEFT: 0.64em; PADDING-BOTTOM: 0.43em;
 MARGIN: 2px; COLOR: #fff; PADDING-TOP: 0.5em; BACKGROUND-COLOR: #de1818 
} 
DIV.jogger SPAN.current { 
PADDING-RIGHT: 0.64em; PADDING-LEFT: 0.64em; PADDING-BOTTOM: 0.43em;
 MARGIN: 2px; COLOR: #6d643c; PADDING-TOP: 0.5em; BACKGROUND-COLOR: #f6efcc 
} 
DIV.jogger SPAN.disabled { 
DISPLAY: none 
} 
</style>
  </head>
  <body>
   <header role="banner" id="fh5co-header">
      <div class="container">
        <!-- <div class="row"> -->
          <nav class="navbar navbar-default">
            <div class="navbar-header">
              <!-- Mobile Toggle Menu Button -->
          <a href="#" class="js-fh5co-nav-toggle fh5co-nav-toggle" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><i></i></a>
                <a class="navbar-brand" href="index.html">Phone<span>.</span></a> 
            </div>
            <div id="navbar" class="navbar-collapse collapse">
              <ul class="nav navbar-nav navbar-right">
                <li class="active"> <a  style="font-family: SimHei;font-size: large" data-nav-section="" href="{:U('Index/index')}"><span> Home</span></a></li>
                <li><a  style="font-family: SimHei;font-size: large" data-nav-section="prephone" href="{:U('PrePhones/prephonelist')}"><span> PrePhone</span></a></li>
                <li><a  style="font-family: SimHei;font-size: large" data-nav-section="phone" href="{:U('Phones/phonelist')}"><span> Phone</span></a></li>
                <li><a  style="font-family: SimHei;font-size: large" data-nav-section="adminlogin" href="/phone/Admin/"><span> Admin Login</span></a></li>
                 <if condition="$Think.session.uname eq null">
                <li><a  style="font-family: SimHei;font-size: large" data-nav-section="login" href="{:U('Users/login')}"><span> Login</span></a></li>
                <li><a  style="font-family: SimHei;font-size: large" data-nav-section="reg" href="{:U('Users/reg')}"><span> Reg</span></a></li>
                <else/>
                   <li>
                      <a  style="font-family: SimHei;font-size: large" href="{:U('Goods/goods')}">{$Think.session.u}</a>
                  </li>
                    <li><a style="font-family: SimHei;font-size: large" data-nav-section="exitlog" href="{:U('Goods/edituser')}"><span>修改个人信息</span></a></li>
                <li><a style="font-family: SimHei;font-size: large" data-nav-section="exitlog" href="{:U('Users/exitLog')}"><span>Logout</span></a></li>
                 </if>

                
              </ul>
         <!--      <div class="search" style="min-width: 160px" >
                          <form  style="min-width: 90px">
                              <input style="min-width: 90px" type="text" value="搜索品牌" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}" >
                              <input type="submit" value="">
                          </form>
                   </div> -->
            </div>
          </nav>
        <!-- </div> -->
      </div>
  </header>
  <div id="fh5co-testimonials" data-section="testimonials">   
    <div class="container">
      <div class="row">
        <div class="col-md-12 section-heading text-center">
          <h2 class="animate-box" data-animate-effect="fadeIn" style="margin-left: -100px;">用户信息</h2>
          <div class="row animate-box" data-animate-effect="fadeIn">
            <div class="col-md-8 col-md-offset-2 subtext">
              <ul>
<marquee behavior="scroll" direction="left" onMouseOut="this.start()" onMouseOver="this.stop()"><p style="color:#FFFFFF;font-size: 30px; " class="s1 s2 s5">欢迎进入个人信息页面</p></marquee>
</ul>
            </div>
          </div>
      
    <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
            <form  method="post"  class="form-horizontal" action="{:U(goodsadd)}">
         
        <input type="hidden" name="userid" value="{$Think.session.uname}">
        <img src="__PUBLIC__/Admin/photo/{$list.photo}" width="100">
                <br>
                <br>
                <input class="form-control" placeholder="用户名" type="text" id="uname" name="uname" value="{$list.uname}" required>
                <br>
                 
                <if condition="($list.gender eq 1)"><input class="form-control" placeholder="性别" type="text" value="男"><else/><input class="form-control" placeholder="性别" type="text" value="女"></if>
                <br>
                <input class="form-control" placeholder="出生日期" type="text" id="birthdate" name="birthdate" value="{$list.birthdate}">
                <br>
                <if condition="($list.degree eq 0)"><input class="form-control" placeholder="学历" type="text"  value="中学"><elseif condition="($list.degree eq 1)"/> <input class="form-control" placeholder="学历" type="text"  value="高中"><elseif condition="($list.degree eq 2)"/><input class="form-control" placeholder="学历" type="text"  value="大学"><else/><input class="form-control" placeholder="学历" type="text"  value="研究生"></if>
               
                <br>
                <input class="form-control" placeholder="邮箱" type="text" id="email" name="email" value="{$list.email}" >
                <br>
                <input class="form-control" placeholder="喜爱的手机品牌" type="text" id="love" name="love" value="{$list.love}">
                <br>
                 <input class="form-control" placeholder="使用的手机品牌" type="text" id="use" name="use" value="{$list.use}">
                <br>
                
              
                <input class="btn btn-block btn-info "  type="submit" value="生成二维码">
                 <br>
               
            </form>
            
        </div>


            <form  method="post"  class="form-horizontal" action="{:U(printQrcode)}"   onsubmit="return printCode();" >
            <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
                 
            </div>
        <div class="col-md-10  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-1 col-xs-offset-2 " >
           
            <table id="qrcode" class="table  table-responsive">
                <tr>
                    <th>
                        <label><input  class="task-input" type="checkbox" id="allCheck" onchange="all_checked()"><span>全选</span></label>
                    </th>
                    <th>二维码</th>
                    <th>用户名</th>
                    <th>二维码信息</th>
          <th>手机</th>
                    <th>操作</th>
                </tr>
                <!-- js方法批量打印二维码-->
                <volist name="qrcodeList" id="vo">
                    <tr class="QRCodePrint">
                        <td>
                            <label><input  class="task-input" type="checkbox"  name="Check[]" value="{$vo.id}"><span></span></label>
                        
                        </td>
                        <td><img id="a" src="__PUBLIC__/Admin/Uploads/qrcode/{$vo.qrpath}" width="80"></td>
                        <td>
                            <p >{$vo.uname}</p>
                        </td>
                        <td>
                            <p >
            名字：{$vo.uname}<br>
            出生日期：{$vo.birthdate}<br>
            邮箱:{$vo.email}<br>
                        </td>
            <td>
                  <p >喜欢的手机品牌: {$vo.love}<br>
                  现使用的手机品牌: {$vo.use}<br>

                        </td>
                        <td>
                        <a href="{:U('editqrcode',array('id'=>$vo['id']))}" >
                        <i class="icon-edit"></i>编辑</a>
                        <a href="{:U('delqrcode',array('id'=>$vo['id']))}" onclick="return confirm('你确定要删除吗？')"><i class="icon-remove"></i>删除</a>
                        </td>
                    </tr>
                </volist>
                <tr><td colspan="6"><span><input class="btn   btn-warning "  type="button" value="删除" onclick="delcheck()"></span><input class="btn  btn-warning "  type="submit" value="打印"></td></tr>
            </table>
            </form>


   <div class="jogger"> {$link}        </div>
       </div>
          </div>
                       </div>
                       </div>


      </div>
    </div>
  </div>

  
  
  <div class="fh5co-cta" style="background-image:url(__APP__/Public/assets/images/hero.jpg)">
    <div class="overlay"></div>
    <div class="container">
      <div class="col-md-8 col-md-offset-2 text-center">
        <h3>If you are the administrator, please click below. </h3>
        <p><a href="/phone/Admin/" class="btn btn-primary btn-outline btn-lg">后台登录</a></p>
      </div>
    </div>
  </div>

  <footer id="footer" role="contentinfo">
    <div class="container">
      <div class="row row-bottom-padded-sm">
        <div class="col-md-12">
          <p class="copyright text-center">&copy; 大连东软信息学院<a href="#">Phone</a>. 首页 <br> 计算机科学与技术 <a href="#" target="_blank" title="14007"></a> - 14007 <a href="#" title="李簿原" target="_blank">李簿原</a> </p>
        </div>
      </div>
      <div class="row">
        <div class="col-md-12 text-center">
          <ul class="social social-circle">
            <li><a href="#"><i class="icon-twitter"></i></a></li>
            <li><a href="#"><i class="icon-facebook"></i></a></li>
            <li><a href="#"><i class="icon-youtube"></i></a></li>
            <li><a href="#"><i class="icon-pinterest"></i></a></li>
            <li><a href="#"><i class="icon-linkedin"></i></a></li>
            <li><a href="#"><i class="icon-instagram"></i></a></li>
            <li><a href="#"><i class="icon-dribbble"></i></a></li>
          </ul>
        </div>
      </div>
    </div>
        <include file="Public/footer" />    
    
  </body>

</html>



             